import request from '@/utils/request'

// 查询部门公共标签列表
export function listCommontaginfo(query) {
  return request({
    url: '/business/commontaginfo/list',
    method: 'get',
    params: query
  })
}

// 查询部门公共标签详细
export function getCommontaginfo(id) {
  return request({
    url: '/business/commontaginfo/' + id,
    method: 'get'
  })
}

// 新增部门公共标签
export function addCommontaginfo(data) {
  return request({
    url: '/business/commontaginfo',
    method: 'post',
    data: data
  })
}

// 修改部门公共标签
export function updateCommontaginfo(data) {
  return request({
    url: '/business/commontaginfo',
    method: 'put',
    data: data
  })
}

// 删除部门公共标签
export function delCommontaginfo(id) {
  return request({
    url: '/business/commontaginfo/' + id,
    method: 'delete'
  })
}

// 导出部门公共标签
export function exportCommontaginfo(query) {
  return request({
    url: '/business/commontaginfo/export',
    method: 'get',
    params: query
  })
}